package cn.jbooter.restweb.autoconfigure.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import cn.jbooter.restweb.autoconfigure.enu.FrameApiType;

/**
 * web信息配置
 * @author hejian
 *
 */
@ConfigurationProperties(prefix="spring.web-info")
public class WebInfoProperties {

	/** 框架接口的类型 默认 simple **/
	private FrameApiType frameApiType=FrameApiType.SIMPLE;
	/** 框架接口的注册中心id **/
	private String registryIds;//"N/A";//RegistryConfig.NO_AVAILABLE;
	
	/** 非ajax的web请求错误跳转的视图:默认:/error/500 **/
	@Deprecated
	private String defaultErrorView="/error/500";
	
	public FrameApiType getFrameApiType() {
		return frameApiType;
	}
	public void setFrameApiType(FrameApiType frameApiType) {
		this.frameApiType = frameApiType;
	}
	public String getRegistryIds() {
		return registryIds;
	}
	public void setRegistryIds(String registryIds) {
		this.registryIds = registryIds;
	}
	public String getDefaultErrorView() {
		return defaultErrorView;
	}
	public void setDefaultErrorView(String defaultErrorView) {
		this.defaultErrorView = defaultErrorView;
	}
	
	
}
